package org.netty.framework.core.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = NettyProperties.NETTY_PREFIX)
public class NettyProperties {

	public static final String NETTY_PREFIX = "netty.server";

	/**
	 * http服务的端口
	 */
	private Integer httpServerPort = 8666;

	/**
	 * tcp服务的端口
	 */
	private Integer tcpServerPort = 8667;

	/**
	 * websocket服务的端口
	 */
	private Integer webSocketPort = 8668;

	public Integer getHttpServerPort() {
		return httpServerPort;
	}

	public void setHttpServerPort(Integer httpServerPort) {
		this.httpServerPort = httpServerPort;
	}

	public Integer getTcpServerPort() {
		return tcpServerPort;
	}

	public void setTcpServerPort(Integer tcpServerPort) {
		this.tcpServerPort = tcpServerPort;
	}

	public Integer getWebSocketPort() {
		return webSocketPort;
	}

	public void setWebSocketPort(Integer webSocketPort) {
		this.webSocketPort = webSocketPort;
	}

}
